package com.hsmpay.mobile.service.user;

import com.hsmpay.common.service.BaseService;

import java.io.Serializable;

/**
 * 用户发送信息日志 服务接口 sendmsgLogService
 *
 * @param <Entity>
 * @param <Query>
 * @author lyc
 *         建立时间：2015-4-28
 */
public interface SendmsgLogService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {

    /**
     * 验证一个终端在90秒内发送短信是否发过短信
     */
    public boolean isSendOn90s(String uuId, Long terminalTypeId, Long roleId) throws Exception;

    /**
     * 验证一个终端在60秒内发送短信是否发过短信
     */
    public boolean isSendOn60s(String uuId, Long terminalTypeId, Long roleId) throws Exception;

    /**
     * 验证一个终端一天内是否发送超过30条验证信息
     */
    public boolean isExceed30(String uuId, Long terminalTypeId, Long roleId) throws Exception;
}
